package com.sh.data.engine.application.model.dto.authority;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class RoleDTO {
    @Schema(description = "角色id")
    private Long id;

    @Schema(description = "角色名称")
    private String roleName;

    @Schema(description = "角色描述")
    private String roleDesc;

    @Schema(description = "菜单列表")
    private List<SimpleMenuEntity> menuList;

    @Schema(description = "是否预设角色")
    private Integer isSystem;

    @Data
    public static class SimpleMenuEntity{
        @Schema(description = "菜单id")
        private Long menuId;
        @Schema(description = "读写权限")
        private Integer readWriteStatus;
    }

    @Schema(description = "最近修改人")
    private String updateName;

    @Schema(description = "最近修改时间")
    private Date updateTime;
}
